str1 = "dasdsadasdasdlk1111111hasdaskjiusduyoikjc"
listb = []
lista = []
list3 = []
for i in str1:
    if i not in listb:
        listb.append(i)
        lista.append(str1.count(i))
print(listb)
# list3 = listb
max_num = max(lista)
# for i in listb:
#     if str1.count(i) == max_num:
#         list3.append(i)
# print(list3)
for k in list(reversed(listb)):
    print(list(reversed(listb)))
    print("外面{}的个数是{}".format(k,str1.count(k)))
    if str1.count(k) < max_num:
        print("里面{}的个数是{}".format(k,str1.count(k)))
        # print(str1.count(k))
        listb.remove(k)
print(listb)
print(max_num)

# print(list1)
# print(max(list3))
# str = list1[0]
# count = str1.count(list1[0])
# for i in range(1,len(list1)-1):
#     if count < str1.count(list1[i]):
#         count = str1.count(list1[i])
#         str = list1[i]
#
# list2 = []
# for i in range(len(list1)-1):
#     if str1.count(list1[i]) == count:
#         list2.append(list1[i])
# print(list2)
# # print(str)
# print(count)



